package com.tanhua.model.vo;

import com.tanhua.model.domain.Options;
import com.tanhua.model.domain.UserInfo;
import com.tanhua.model.mongo.Movement;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class OptionsVo implements Serializable {
    private String id;   //选项编号
    private String option;  //选项

    public static OptionsVo init(Options options) {
        OptionsVo vo = new OptionsVo();
        vo.setId(options.getId().toString());
        vo.setOption(options.getOption());
        return vo;
    }
}
